package kwic;

import java.util.Vector;

public abstract class Filter
{
  protected Vector<Filter> sinks;
  
  public Filter()
  {
    sinks = new Vector<Filter>();
  }
  
  public void addSink(Filter f)
  {
    sinks.add(f);
  }
  
  public void putData(Object o)
  {
    for(Filter f : sinks)
    {
      f.putData(o);
    }
  }
}
